﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RssSourcesMenu.ascx.cs" Inherits="admin_webparts_Plug_ins_RssNews_RssSourcesMenu" %>
<%@ Import Namespace="NTTHAO.CommonWeb" %>
<%@ Import Namespace="NTTHAO.Web.BL.Rss" %>
<%
    string bUrl = "?type=" + Request.QueryString["type"] + "&name=" + Request.QueryString["name"] + "&item=" + Request.QueryString["item"];
    bool isAdmin = Context.User.Identity.Name.Equals("admin", StringComparison.OrdinalIgnoreCase);
    int siteID = WebGlobal.GetSite().ID;
    int langID = LanguageUtility.GetLanguageID();
%>
<style type="text/css">
.nav-left { overflow: hidden; }
.nav-left .nav-left-header { font-weight: bold; font-size: 1.2em; padding-bottom: 5px; margin-bottom: 5px; border-bottom: dashed 1px #89D; color: #E76300; }
.nav-left a { display: block; padding: 2px 0px; margin-top: 3px; }
</style>
<div class="tip" style="margin-bottom: 0px;">
    <div class="nav-left">
        <div class="nav-left-header">Danh mục website</div><%
if (RssSite.RssSites != null) 
{
    foreach (RssSite site in RssSite.RssSites)
    {
        if (site.SiteID == siteID && (isAdmin || site.Activated))
        {
%>
        <div><a style="<%=site.ID == _RssSiteID ? "font-weight: bold;" : ""%>" href="<%=bUrl %>&site=<%=site.ID %>"><%=site.SiteName %></a></div><%
        }
    }
}
%>
    </div>
</div>